package com.lzh.tiktok.user.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author lizhihang
 * @create 2023-01-17 12:21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class UserInfoResponseVo {

    /* 状态码，0是成功 其他值是失败*/

    private Integer status_code;

    /*  状态描述*/

    private String status_msg;

    /**
     * 用户粉丝，关注等信息
     */
    private UserVo user;


    //成功的返回
    public static UserInfoResponseVo suceess(UserVo userVo) {
        return new UserInfoResponseVo(0, "登录成功", userVo);
    }

    public static UserInfoResponseVo fail() {
        return new UserInfoResponseVo(1, "登录失败", null);
    }

}
